//
//  AllBuilding.hpp
//  宿舍管理系统
//
//  Created by 孟强定 on 2020/6/26.
//  Copyright © 2020 mqd. All rights reserved.
//

#ifndef AllBuilding_hpp
#define AllBuilding_hpp

#include <stdio.h>
#include "Building.hpp"
/*
 * AllBuilding代表所有宿舍的集合
 */
class AllBuilding{
private:
    Building* buildings;
    int num;
public:
    AllBuilding(int num=5);
    void autoDistribute(); //自动给所有学生分配宿舍
    bool autoDistributeOne(Student *stu); //自动给指定学生分配宿舍
    bool manualDistributeOne(Student *stu, int room[3]); //手动给指定学生分配宿舍
    bool delOne(Student *stu); //从宿舍中删除某个学生
    bool find(std::string& s); //查找某个宿舍
};

#endif /* AllBuilding_hpp */


